<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>12-数字输入组件</title>
    <!--Vue必须放上面-->
    <script src="../js/vue.js"></script>
    <!--ElementUi-->
    <script src="../element-ui/lib/index.js"></script>
    <link rel="stylesheet" href="../element-ui/lib/theme-chalk/index.css">
</head>
<body>
    <div id="app">
        <!--
            数字输入组件： el-input-number   行级组件
                 : min    和数字输入组件绑定的属性的最小值
                 : max    和数字输入组件绑定的属性的最大值
                 : step    步距
        -->
        <el-input-number v-model="age" :min="0" :max="120" :step="1"></el-input-number>
        <el-input-number v-model="age" :min="6" :max="120" :step="2"></el-input-number>
    </div>
    <script>
        const vm = new Vue({
            el: "#app",
            data: {
                age:10,
            },
            methods: {}
        });
    </script>
</body>
</html>